home *** CD-ROM | disk | FTP | other *** search
- Path: news.itsyd.bhp.com.au!news
- From: Richard Bowen <bowen.richard.rw@bhp.com.au>
- Newsgroups: comp.lang.c++
- Subject: Re: Will JAVA kill C++?
- Date: Sun, 10 Mar 1996 15:01:04 +1000
- Organization: BHP IT
- Message-ID: <31426210.1244@bhp.com.au>
- References: <313E44EA.14D110C0@netcom.com> <4hp18v$3di@frodo.smartlink.net>
- NNTP-Posting-Host: 134.18.154.118
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (WinNT; I)
-
- Will Java kill C++?
-
- The Nameless One wrote:
- >
- > ABSOLUTELY NOT!
-
- Definitely will.
-
- > Since JAVA is still INTERPRETED (yes, even after it is "compiled" into
- > psuedocode) a "pure" C++ program will beat the socks off of a pure Java
- > program any day of the week in terms of speed and overall power. Any
- > interpreted language is slow no matter how fast your computer is!
-
- There is no reason why Java applications( not web page applets) have to be
- always interpreted. As new tools are developed, Java will be able to be
- compiled into native code just as fast as C++ code. Sun and Borland are
- even working on interpreters that compile code JIT, meaning platform
- independant bytecode can be compiled dynamically as required on any Java
- platform.
-
-
- > Even if you did compile the JAVA program into your machine's native
- > language (in so doing you would lose ALL cross-platform compatibility), I
- > still think the C++ program would be quicker and more efficient -- There
- > are still some things you will not be able to do in JAVA, such as
- > pointers. And anyone who believes arrays can do anything a real pointer
- > can does not know what they are talking about and probably does not know
- > how to program very well.
-
- True Java doesn't use pointers, it uses references. But reference can do
- anything a pointer can do, and it has the advantage of never pointing to
- NULL or a deleted object or rubbish that causes a memory access violation.
- Using references instead of pointers certainly has no disadvantage.
-
-
- > Java main advantage, and a large advantage it is, will be complete
- > cross-platform compatibility. Meaning any JAVA program will run on any
- > machine which has an interpreter programmed for it. I think we will see
- > many JAVA apps in the future, but C++ will be here to stay. You will
- > never program a true operating system in JAVA! And if a program needs
- > real speed or does heavy graphics work I think JAVA will come up short.
-
-
- C++ is dying, and once decent Java tools and libraries come out C++ will be
- dead. The Java language can do pretty much anything C++ can do. Java will
- run just as fast as C++. Java code will be more reliable and robust than
- C++ due to garbage collection and a stripped down vocabulary. And like
- you said, it is a platform independant open standard API so that you can be
- confident that any program that you write can run on any PC/Workstation or
- in the future PDA/watch/toaster whatever. Companies can develop code with
- confidence that it will not be worthless when the next operating system
- comes into vogue.
-
- Java is not some trendy new smalltime language. It is major step for the
- software industry, and it will revolutionise it.
-
- Java will kill C++.
-
- Richard
- bowen.richard.rw@bhp.com.au
-